import React, { Component } from 'react';
export const withLog = (Com) => {
  // 需求 希望 this.props...方式来使用组件
  const log=()=>{};

  const MyCom = (props) => {
    // console.log(props);
    return <Com {...props} log={log} />
  }
  
  return MyCom;
}